<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:101:"E:\www\sungmu.net\crm.manage.dev.sungmu.net\public/themes/admin_simpleboot3/admin\api_resume\add.html";i:1757496961;s:94:"E:\www\sungmu.net\crm.manage.dev.sungmu.net\public\themes\admin_simpleboot3\public\header.html";i:1753343380;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->


    <link href="/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
    <link href="/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        form .input-order {
            margin-bottom: 0px;
            padding: 0 2px;
            width: 42px;
            font-size: 12px;
        }

        form .input-order:focus {
            outline: none;
        }

        .table-actions {
            margin-top: 5px;
            margin-bottom: 5px;
            padding: 0px;
        }

        .table-list {
            margin-bottom: 0px;
        }

        .form-required {
            color: red;
        }
    </style>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
        };
    </script>
    <script src="/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip({
                container:'body',
                html:true,
            });
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <?php if(APP_DEBUG): ?>
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    <?php endif; ?>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="<?php echo url('index'); ?>">列表</a></li>
        <li class="active"><a href="<?php echo url('add'); ?>">单人添加</a></li>
        <li><a href="<?php echo url('adds'); ?>">多人添加</a></li>
    </ul>
    <form action="<?php echo url('add'); ?>" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">

                    <tr>
                        <th width="20%">景区<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="spot_uuid" id="spot_uuid" aria-invalid="false"
                                    required>
                                <option value="">-请选择-</option>
                                <?php if(is_array($detail['getApispotListInfo']) || $detail['getApispotListInfo'] instanceof \think\Collection || $detail['getApispotListInfo'] instanceof \think\Paginator): $i = 0; $__LIST__ = $detail['getApispotListInfo'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <option value="<?php echo $vo['uuid']; ?>"><?php echo $vo['spot_title']; ?></option>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </select>
                        </td>
                    </tr>
                    <?php if(\think\Session::get('admin_is_operate') == 1): ?>
                        <tr>
                            <th width="20%">分销商<span class="form-required">&nbsp;*&nbsp;</span></th>
                            <td>
                                <select class="form-control valid" name="supplier_uuid" id="supplier_uuid" aria-invalid="false" required>
                                    <option value="">-请选择-</option>
                                    <?php if(is_array($detail['getApiSupplierListInfo']) || $detail['getApiSupplierListInfo'] instanceof \think\Collection || $detail['getApiSupplierListInfo'] instanceof \think\Paginator): $i = 0; $__LIST__ = $detail['getApiSupplierListInfo'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                        <option value="<?php echo $vo['uuid']; ?>"><?php echo $vo['supplier_title']; ?></option>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </select>
                            </td>
                        </tr>
                        <?php else: ?>
                        <input type="hidden" name="supplier_uuid" value="<?php echo $detail['getApiSupplierListInfo'][0]['uuid']; ?>">
                    <?php endif; ?>
                    <tr>
                        <th width="20%">姓名<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="text" name="resume_name" id="resume_name" required value="" placeholder="请填写姓名"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">性别<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="resume_sex" id="resume_sex" aria-invalid="false" required>
                                <option value="">-请选择-</option>
                                <?php if(is_array($detail['resumeSexArr']) || $detail['resumeSexArr'] instanceof \think\Collection || $detail['resumeSexArr'] instanceof \think\Paginator): $i = 0; $__LIST__ = $detail['resumeSexArr'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <option value="<?php echo $key; ?>"><?php echo $vo; ?></option>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">年龄<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="number" name="resume_age" id="resume_age" required  value="" placeholder="请填写年龄"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">手机号<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="number" name="resume_mobile" id="resume_mobile" required value="" placeholder="请填写手机号"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">证件类型<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="id_type" id="id_type" aria-invalid="false" required>
                                <option value="">-请选择-</option>
                                <?php if(is_array($detail['idTypeArr']) || $detail['idTypeArr'] instanceof \think\Collection || $detail['idTypeArr'] instanceof \think\Paginator): $i = 0; $__LIST__ = $detail['idTypeArr'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <option value="<?php echo $key; ?>"><?php echo $vo; ?></option>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">证件号码<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="text" name="resume_number" id="resume_number" required value="" placeholder="请填写证件号码"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">游玩日期<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control js-bootstrap-date" type="text" name="resume_date" id="resume_date" required value="" placeholder="请选择游玩日期"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">备注信息<span class="form-required">&nbsp;</span></th>
                        <td>
                            <textarea class="form-control" name="resume_desc" id="resume_desc"  placeholder="请填写备注信息" style="width:100%;height:200px;resize:none;"></textarea>
                        </td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit"><?php echo lang('ADD'); ?></button>
                        <a class="btn btn-default" href="<?php echo url('index'); ?>"><?php echo lang('BACK'); ?></a>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <table class="table table-bordered">

                </table>
            </div>
        </div>
    </form>
</div>
<script src="/static/js/admin.js"></script>
</body>
</html>